
class UserInfo {
	String accessToken;
	String tokenType;
	String refreshToken;
	String expiresIn;
	String refreshTokenExpiresIn;
	String scope;
	String username;
	String nickname;
	String account;
	String userId;
	String authorities;
	String roles;
	String requestStrategy;
	String clientId;
	Enterprise enterprise;
	String faviconUrl;
	String areaIds;
	String originalId;

	UserInfo({this.accessToken, this.tokenType, this.refreshToken, this.expiresIn, this.refreshTokenExpiresIn, this.scope, this.username, this.nickname, this.account, this.userId, this.authorities, this.roles, this.requestStrategy, this.clientId, this.enterprise, this.faviconUrl, this.areaIds, this.originalId});

	UserInfo.fromJson(Map<String, dynamic> json) {
		accessToken = json['accessToken'];
		tokenType = json['tokenType'];
		refreshToken = json['refreshToken'];
		expiresIn = json['expiresIn'];
		refreshTokenExpiresIn = json['refreshTokenExpiresIn'];
		scope = json['scope'];
		username = json['username'];
		nickname = json['nickname'];
		account = json['account'];
		userId = json['userId'];
		authorities = json['authorities'];
		roles = json['roles'];
		requestStrategy = json['requestStrategy'];
		clientId = json['clientId'];
		enterprise = json['enterprise'] != null ? new Enterprise.fromJson(json['enterprise']) : null;
		faviconUrl = json['faviconUrl'];
		areaIds = json['areaIds'];
		originalId = json['originalId'];
	}
}

class Enterprise {
	String id;
	int createdTime;
	Null creator;
	int modifiedTime;
	Null modifier;
	String name;
	Map nameMap;
	Null adminId;
	String code;
	String tradeCode;
	String tenantId;
	String relayId;
	String authModules;
	String uuid;
  String abbrName;

	Enterprise({this.id, this.createdTime, this.creator, this.modifiedTime, this.modifier, this.name, this.nameMap, this.adminId, this.code, this.tradeCode, this.tenantId, this.relayId, this.authModules, this.uuid,this.abbrName});

	Enterprise.fromJson(Map<String, dynamic> json) {
		id = json['id'];
		createdTime = json['createdTime'];
		creator = json['creator'];
		modifiedTime = json['modifiedTime'];
		modifier = json['modifier'];
		name = json['name'];
		nameMap = json['nameMap'] != null ? json['nameMap'] : null;
		adminId = json['adminId'];
		code = json['code'];
		tradeCode = json['tradeCode'];
		tenantId = json['tenantId'];
		relayId = json['relayId'];
		authModules = json['authModules'];
		uuid = json['uuid'];
    abbrName = json['abbrName'];
	}
}